//
//  GamesSetting.h
//  Games
//
//  Created by Sean Chen on 5/9/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

//
//define your filenames here like this:
//
//#define kFileNameFavoritePosts @"FavoritePosts.plist"
//#define kFileNameFavoriteAlbums @"FavoriteAlbums.plist"
//#define kFileNameFavoriteComments @"FavoriteComments.plist"
//#define kFileNameSearchHistory @"SearchHistory.plist"

#define kFileNamePeriodicals @"Periodicals.plist"
#define kFileNamePage @"Periodical%@_%d.jpeg"
#define kFileNameThumb @"Periodical%@_%d_s.jpeg"

@interface M13FileManager : NSObject {
    
}

+ (BOOL)add:(NSObject *)dict toFile:(NSString *)fileName;
+ (BOOL)remove:(NSObject *)dict fromFile:(NSString *)fileName;
+ (BOOL)exits:(NSObject *)dict inFile:(NSString *)fileName;
+ (BOOL)fileExits:(NSString *)fileName;
+ (NSMutableArray *)recordsInFile:(NSString *)fileName;
+ (NSMutableArray *)reversedRecordsInFile:(NSString *)fileName;

+ (NSString *)filePathWithFileName:(NSString *)fileName;

@end
